Developer Documentation

QuickTime 4 API Documentation

QuickTime for Java

| Previous | Chapter Top | Chapter Contents | Next |

Garbage Collection

As Java has a built-in garbage collection mechanism, the QuickTime for Java classes perform their own memory management. There are no explicit dispose calls in the QuickTime for Java API. These calls are called by the objects themselves when they perform garbage collection. The quicktime.util.QTUtils.reclaimMemory() method requests that the garbage collector run and can be used to help ensure disposed of memory that is no longer referenced.

The QuickTime for Java API contains no direct access to pointers or other features that are common in a C-based API. The Java method calls provide very little overhead to the native call; they do parameter marshalling and check the result of the native call for any error conditions. If an error is returned by the native call, then an exception is thrown.


© 1999 Apple Computer, Inc.

| Previous | Chapter Top | Chapter Contents | Next |